/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.ucase.casemain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 描述: 文书修改记录表 case_document_modify_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2023年01月06日
 */
@Data
@Table(name = "upcase.case_document_modify_record")
public class CaseDocumentModifyRecord implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 案件id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 文书id
     */
    @Column(name = "document_id")
    private String documentId;

    /**
     * 文书目录编码
     */
    @Column(name = "document_catalog_code")
    private String documentCatalogCode;

    /**
     * 修改标题
     */
    @Column(name = "modify_title")
    private String modifyTitle;

    /**
     * 修改字段内容 (json数组)--修改字段名,修改前内容,修改后内容
     */
    @Column(name = "modify_column_content")
    private String modifyColumnContent;

    /**
     * 修改原因
     */
    @Column(name = "modify_reason")
    private String modifyReason;

    /**
     * 修改详情描述
     */
    @Column(name = "modify_reason_desc")
    private String modifyReasonDesc;

    /**
     * 修改前文书url
     */
    @Column(name = "document_url_before_modify")
    private String documentUrlBeforeModify;

    /**
     * 修改后文书url
     */
    @Column(name = "document_url_after_modify")
    private String documentUrlAfterModify;

    /**
     * 是否需要审批 0:否; 1:是
     */
    @Column(name = "is_need_approval")
    private String isNeedApproval;

    /**
     * 创建人id
     */
    @Column(name = "create_user_id")
    private String createUserId;

    /**
     * 创建人名称
     */
    @Column(name = "create_user_name")
    private String createUserName;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 审批通过时间
     */
    @Column(name = "approval_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date approvalTime;

    /**
     * 是否删除 0:否 1:是
     */
    @Column(name = "is_delete")
    private String isDelete;

    /**
     * 原始文书id
     */
    @Column(name = "original_document_id")
    private String originalDocumentId;

    /**
     * 修改标识id(同一文书修改标识)
     */
    @Column(name = "modify_flag_id")
    private String modifyFlagId;


    private static final long serialVersionUID = 1L;

}